package com.cy.detectsys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.cy.detectsys.entity.CableInfo;
import com.cy.detectsys.mapper.CableInfoMapper;
import com.cy.detectsys.service.CableInfoService;
import com.cy.detectsys.util.BaseResponseInfo;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.List;

/**
* @author asus
* @description 针对表【cable_info】的数据库操作Service实现
* @createDate 2024-06-03 10:43:37
*/
@Service
public class CableInfoServiceImpl extends ServiceImpl<CableInfoMapper, CableInfo>
    implements CableInfoService {
     @Resource
     CableInfoMapper cableInfoMapper;

    @Override
    public BaseResponseInfo getCableInfoList() {
        List<CableInfo> list = list();
        int size = list.size();
        CableInfo cableInfo = new CableInfo();
        cableInfo.setTotal(size);
        System.out.println(cableInfo);
        BaseResponseInfo baseResponseInfo = new BaseResponseInfo();
        baseResponseInfo.data = cableInfo;
        baseResponseInfo.setCode(200);
        baseResponseInfo.setMsg("成功");
        return baseResponseInfo;

    }


}




